package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.Computerroom;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ComputerroomMapper {
    public Computerroom getByRoomName(@Param("roomName") String roomName);

    //分页查询
    public List<Computerroom> getPage(@Param("computerroom") Computerroom computerroom,
                                      @Param("pageBegin") Integer pageBegin,
                                      @Param("pageSize") Integer pageSize);

    //总数
    public Integer count(@Param("computerroom") Computerroom computerroom);

    //详情
    public Computerroom getByRoomId(@Param("roomId") Long roomId);

    public int insert(Computerroom computerroom);

    public int update(Computerroom computerroom);

    public int delete(@Param("roomId") Long roomId);

    //查重
    public Computerroom findByRoomName(@Param("roomName") String roomName);
}
